package com.revenant.driver.bean.selectcarnumber;

import com.chad.library.adapter.base.entity.MultiItemEntity;
import com.revenant.driver.adapter.SelectCarNumberNewBeanAdapter;

public class StatusTabbeddNormalBean implements MultiItemEntity {

    public StatusTabbeddNormalBean(String carinfo, String imageUrl, String driverName,
                                   String ordertime, String phone,int status,int isConsummate,int carDriverId,
                                   int isTrailerCarInfo
    ) {
        this.carinfo = carinfo;
        this.imageUrl = imageUrl;
        this.driverName = driverName;
        this.ordertime = ordertime;
        this.phone = phone;
        this.status=status;
        this.isConsummate=isConsummate;
        this.carDriverId=carDriverId;
        this.isTrailerCarInfo=isTrailerCarInfo;
    }

    public StatusTabbeddNormalBean(String carinfo,int status,int isTrailerCarInfo) {
        this.carinfo = carinfo;
        this.status=status;
        this.isTrailerCarInfo=isTrailerCarInfo;
    }

    public String carinfo;
    public String imageUrl;
    public String driverName;
    public String ordertime;
    public String phone;
    public int status;
    public int isTrailerCarInfo;

    private int isConsummate;
    private int carDriverId;

    public int getIsConsummate() {
        return isConsummate;
    }

    public void setIsConsummate(int isConsummate) {
        this.isConsummate = isConsummate;
    }

    public int getCarDriverId() {
        return carDriverId;
    }

    public void setCarDriverId(int carDriverId) {
        this.carDriverId = carDriverId;
    }


    @Override
    public int getItemType() {
        if (status==0){
            return SelectCarNumberNewBeanAdapter.TYPE_LEVEL_1;
        }else {
            return SelectCarNumberNewBeanAdapter.TYPE_LEVEL_1_Second;
        }

    }
}